<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html lang="zh">
<head>
<link type="text/css" rel="stylesheet"
	href="http://www.txazo.com/css/${applicationScope.edition}/login.css" />
<title>用户注册</title>
</head>
<body>
	<div id="login">
		<div id="title">
			<span>用户登录</span>
		</div>
		<div id="lg_form">
			<form action="login/login" method="post">
				<div>
					<span class="form_title">帐号：</span> <input id="lg_account"
						type="text" name="account" value="${account}" />
					<c:if test="${!empty tip1}">
						<span class="form_error"><font>${tip1}</font></span>
					</c:if>
				</div>
				<div>
					<span class="form_title">密码：</span> <input id="lg_password"
						type="password" name="password" value="${password}" />
					<c:if test="${!empty tip2}">
						<span class="form_error"><font>${tip2}</font></span>
					</c:if>
				</div>
				<div>
					<span class="form_title">验证码：</span> <input id="lg_authcode"
						type="text" name="authcode" value="${authcode}"
						style="width: 120px;" /> <img id="imgObj" alt="验证码"
						src="/verifyCode?s=login" /> <a id="changeCode"
						href="javascript:changeImg();">换一张</a>
					<c:if test="${!empty tip3}">
						<span class="form_error"><font>${tip3}</font></span>
					</c:if>
				</div>
				<div>
					<input id="lg_saveAccount" type="checkbox" name="saveAccount"
						checked="checked" value="saveAccount" style="width: 20px;" /> <span
						style="position: absolute; left: 350px; margin-top: 10px;">记住帐号</span><input
						id="lg_autoLogin" type="checkbox" name="autoLogin"
						value="autoLogin" style="width: 20px; left: 462px;" /><span
						style="position: absolute; left: 484px; margin-top: 10px;">自动登录</span>
				</div>
				<div>
					<input id="submit" type="submit" class="form_submit"
						style="width: 140px; height: 40px; margin-top: 10px;" value="" />
				</div>
			</form>
		</div>
	</div>
	<script type="text/javascript">
		function changeImg() {
			var imgSrc = $("#imgObj");
			var src = imgSrc.attr("src");
			imgSrc.attr("src", src);
		}
	</script>
</body>
</html>